﻿using ZingBlog.Domain.IRepository;
using ZingBlog.IService;
using ZingBlog.Domain.Entities;
using ZingBlog.Dto;


namespace ZingBlog.Service
{
    public class ArticleClassService : BaseService<ArticleClassEntity> , IArticleClassService
    {
        public IArticleClassRepository repository { get; set; }
        public dynamic GetListByFilter(ArticleClassEntity filter, PageInfo pageInfo)
        {
            return GetListByFilter(filter, pageInfo, null);
        }
        public IEnumerable<ArticleClassEntity> GetArticleClassList()
        {
            return repository.GetArticleClassList();
        }

        public bool DeleteClassAllByClassId(int classId)
        {
            return repository.DeleteClassAllByClassId(classId);
        }
    }
}
